<!--
 * @Author       : 邱狮杰
 * @Date         : 2021-09-02 09:58:57
 * @LastEditTime : 2021-09-08 18:30:42
 * @FilePath     : /smallnewhope/src/page/luckDraw/components/tenYuan.vue
 * @Description  : 牛奶十元优惠卷
-->
<script setup lang="ts">
import { Reward } from "/@/components/index";
import receive from "/@/assets/images/receive.png";
import { useStore } from "vuex";
const store = useStore()
const emits = defineEmits(["onReceiveGet"]);
function getAlert() {
  emits("onReceiveGet");
}
function receiveGet() {
  // alert("领取成功");
  location.href = store.state.user.myawards[0].value
  // go({ name: "index" });
}
</script>
<template>
  <Reward style="z-index: 101">
    <template #button>
      <img @click="receiveGet" :src="receive" alt="receive" class="doawButton" />
    </template>
  </Reward>
</template>

<style lang="scss" scoped>
.doawButton {
  width: 152px;
  height: 36px;
  position: absolute;
  top: 581px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
}
</style>
